package com.gugee.tiktok.common.model.dal.market;

import com.gugee.tiktok.common.model.mysql.BloggerMarket;
import org.springframework.data.repository.CrudRepository;

import java.util.Optional;

public interface BloggerMarketRepository extends CrudRepository<BloggerMarket,Long> {

    BloggerMarket findByMarketId(long marketId);

    /**
     * 根据 coreUserId 查询星图数据
     * @param coreUserId 博主id
     * @return
     */
    Optional<BloggerMarket> findByCoreUserId(long coreUserId);
}
